import Vue from 'vue'
import Router from 'vue-router'
import Home from '../views/Home'
import My from '../views/My'
import Login from '../views/Login'
import Classify from '../views/Classify'
import ShopCart from '../views/ShopCart'
import Detail from '../views/Detail'
import Register from '../views/Register'
Vue.use(Router)
const routes = [
    {
        path: '/',
        component:Login
        
    },
    {
        path: '/register',
        component:Register
        
    },
    {
        path: '/my',
        component:My
        
    },
    {
        path: '/home',
        component:Home
        
    },
    {
        path: '/classify',
        component:Classify
        
    },
    {
        path: '/shopcart',
        component:ShopCart
        
    },
    {
        path: '/detail/:id',
        component:Detail
        
    },
]
let router = new Router({
    routes
});
export default router;